home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / tex / tex29 / sttexsrc.zoo / src / print.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-03-13  |  1.4 KB  |  60 lines

  1.  
  2. /*
  3.  * @(#)print.h 2.5 EPA
  4.  *
  5.  * Copyright 1987,1988 Pat J Monardo
  6.  *
  7.  * Redistribution of this file is permitted through
  8.  * the specifications in the file COPYING.
  9.  *
  10.  * 
  11.  */
  12.  
  13. #define NO_PRINT            16 
  14. #define TERM_ONLY           17
  15. #define LOG_ONLY            18
  16. #define TERM_AND_LOG        19
  17. #define PSEUDO              20
  18. #define NEW_STRING          21
  19. #define MAX_SELECTOR        21
  20.  
  21. global  alpha_file      log_file;
  22.  
  23. global  int         selector;
  24.  
  25. global  int         term_offset;
  26. global  int         file_offset;
  27.  
  28. global  char        dig[];
  29. global  val         tally;
  30. global  ascii       trick_buf[];
  31. global  val         trick_count;
  32. global  val         first_count;
  33.  
  34. int     print();
  35. int     print_char();
  36. int     print_sym();
  37. int     print_ln();
  38. int     print_esc();
  39. int     print_nl();
  40. int     print_the_digs();
  41. int     print_int();
  42. int     print_val();
  43. int     print_hex();
  44. int     print_ASCII();
  45. int     print_roman_int();
  46. int     print_cur_str();
  47.  
  48. #define wterm(c)        putchar(c);
  49. #define wterm_ln(c)     {putchar(c); putchar('\n');}
  50. #define wterm_cr()      putchar('\n');
  51.  
  52. #define wlog(c)         putc(c, log_file)
  53. #define wlog_ln(c)      {putc(c, log_file); putc('\n', log_file);}
  54. #define wlog_cr()       putc('\n', log_file);
  55.  
  56. #define wfile(c)        putc(c, write_file[selector])
  57. #define wfile_ln(c)     {putc(c, write_file[selector]); \
  58.                         putc('\n', write_file[selector]);}
  59. #define wfile_cr()      putc('\n', write_file[selector]);
  60.